class A:

    __ins = None

    def __init__(self):
        pass

    def __new__(cls, *args, **kwargs):
        if cls.__ins is None:
            cls.__ins = object.__new__(cls)
        return cls.__ins

a = A()
b = A()
c = A()

